public class subString {
    public static void main(String[] args) {
        String number = "412824200504126811";
        String borthidy = number.substring(6, 10);
        System.out.println("人物信息");
        System.out.println(borthidy + "年");
        String mouth = number.substring(10, 12);
        System.out.println(mouth + "月");
        String day = number.substring(12, 14);
        System.out.println(day + "日");
        char sex = number.charAt(16);
        //字符零48;
        //字符9为57;
        int num = sex - '0';
        if (num % 2 == 0) {
            System.out.println("女");
        }else {
            System.out.println("男");
        }


    }
}
